s=0
for i  in range(1,967):
    if i%2==1:
        s+=i
    else:
        s-=i
print(s)
